<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/src/css/public.css">
</head>

<body>
    <div style="padding: 10px;">
        <form class="layui-form" action="" lay-filter="layui-form-Table">
            <ul class="layui-form layui-form-pane formUl" style="margin: 15px;">
                <li class="layui-form-item">
                    <label class="layui-form-label">类型</label>
                    <div class="layui-input-block">
                        <input type="text" name="type" lay-verify="required" autocomplete="off" placeholder="请输入类型" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入名称" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">值</label>
                    <div class="layui-input-block">
                        <input type="text" name="value" lay-verify="required" autocomplete="off" placeholder="请输入值" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">描述</label>
                    <div class="layui-input-block">
                        <input type="text" name="description" lay-verify="required" autocomplete="off" placeholder="请输入描述" class="layui-input" disabled>
                    </div>
                </li>
                <li class="layui-form-item">
                    <label class="layui-form-label">排序</label>
                    <div class="layui-input-block">
                        <input type="text" name="paixu" lay-verify="required" autocomplete="off" placeholder="请输入排序" class="layui-input" disabled>
                    </div>
                </li>
            </ul>

        </form>
    </div>
    <script src="/layui/layui.js"></script>
    <script>
        layui.config({
            base: '/src/'
        }).use('index', function() {
            var admin = layui.admin,
                main = layui.main,
                form = layui.form,
                table = parent.table;

            //加载表单内容
            admin.req({
                url: 'system/utilitytable/Edit',
                type: 'get',
                data: {
                    id: main.getPageParams('id')
                },
                done: function(res) {
                    if (res.successful) {
                        form.val("layui-form-Table", {
                            "id": res.data.id,
                            "utype": res.data.utype,
                            "uname": res.data.uname,
                            "value": res.data.value,
                            "description": res.data.description,
                            "paixu": res.data.paixu
                        });
                    }
                }
            });
        });
    </script>
</body>

</html>